<!doctype html>
<html class="no-js " lang="en">
<head>
<meta charset="utf-8">

    <include file="Public/static" />
</head>

<body id="falcon" class="main_Wrapper">
    <div id="wrap" class="animsition">
        <!-- 头部 -->
        <include file="Public/header" />
        <!--/ 头部结束  -->
        <!-- CONTROLS Content  -->
        <include file="Public/menu" />
        <!--/ CONTROLS Content -->
        <!--  CONTENT  -->
        <section id="content">
            <div class="page page-forms-common">
                <!-- bradcome -->
                <div class="b-b mb-10">
                    <div class="row">
                        <div class="col-sm-6 col-xs-12">
                            <h1 class="h3 m-0">修改站点基本信息</h1>
                            <small class="text-muted">欢迎使用默笙后台管理系统 </small>
                        </div>
                    </div>
                </div>
                <!-- 修改版权死妈！by：默笙 QQ：3494490 -->
                <!-- row -->
                <div class="row">
                    <div class="col-md-12">
                        
                        <section class="boxs">
                            <div class="boxs-header">
                                <h3 class="custom-font hb-blush">
                                    <strong>修改站点基本信息</strong> </h3>

                            </div>
                            <div class="boxs-body">
                                <div class="form-horizontal" role="form">
                                    <div class="form-group">
                                        <label for="input01" class="col-sm-2 control-label">LOGO</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="{$info.logo}" class="form-control" id="logo">
                                        </div>
                                    </div>
                                    
                                    
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label for="input01" class="col-sm-2 control-label">站点标题</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="{$info.title}" class="form-control" id="title">
                                        </div>
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label for="input01" class="col-sm-2 control-label">左下版权</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="{$info.banquan}" class="form-control" id="banquan">
                                        </div>
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label for="input01" class="col-sm-2 control-label">右下版权</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="<?php echo htmlentities($info['banquan1']);?>" class="form-control" id="banquan1">
                                        </div>
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                     
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">是否登录后使用</label>
                                        <div class="col-sm-10">
                                            <select tabindex="3" id="islogin" class="chosen-select" >
                                                    <eq name="info.islogin" value="1">
                                                        <option value="1">是</option>
                                                        <option value="0">否</option>
                                                    </eq>
                                                    <eq name="info.islogin" value="0">
                                                        <option value="0">否</option>
                                                        <option value="1">是</option>
                                                    </eq>
                                            </select>

                                        </div>
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">是否VIP用户使用</label>
                                        <div class="col-sm-10">
                                            <select tabindex="3" id="isvip" class="chosen-select" >
                                                <eq name="info.isvip" value="1">
                                                        <option value="1">是</option>
                                                        <option value="0">否</option>
                                                    </eq>
                                                <eq name="info.isvip" value="0">
                                                    <option value="0">否</option>
                                                    <option value="1">是</option>
                                                </eq>
                                               
                                            </select>

                                        </div>
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">普通用户每日限额</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="{$info.usercount}" class="form-control" id="usercount">
                                            <span class="help-block mb-0">
                                            用户注册时生效，请填写整数，这个是每天限制多少次使用，0不限制,修改后新用户注册有效</span>
                                        </div>
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">VIP用户每日限额</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="{$info.vipcount}" class="form-control" id="vipcount">
                                            <span class="help-block mb-0">
                                              用户开通时生效，请填写整数，这个是每天限制多少次使用，0不限制，修改后新用户注册有效
                                              </span>
                                        </div>

                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label for="input01" class="col-sm-2 control-label">统计代码</label>
                                        <div class="col-sm-10">
                                            <textarea class="form-control" rows="5" name="tcode" id="tcode" placeholder="回车换行，支持html内容"><?php echo htmlentities($info['tcode']);?></textarea>
                                        </div>
                                        
                                    </div>
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <label for="input01" class="col-sm-2 control-label">接口地址</label>
                                        <div class="col-sm-10">
                                            <input type="text" value="{$info.dspurl}" class="form-control" id="dspurl">
                                            <span class="help-block mb-0">如果你没有接口请联系QQ3494490购买卡密，如已有卡密请在<a href="https://api.tecms.net" target="_blank">https://api.tecms.net</a>激活</span>
                                        </div>

                                    </div>  
                                    <hr class="line-dashed full-witdh-line" />
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button id="sub" class="btn btn-raised btn-danger">提交</button>
                                            <a href="{:U('user/index')}" class="btn btn-raised btn-default">返回</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </div>
                </div>
            </div>
        </section>
        <!--/ CONTENT -->
    </div>
    <!--/ Application Content -->
    <!--Vendor JavaScripts  -->
<include file="Public/footer" />
    
    
<!--/ Page Specific Scripts --> 
    <script type="text/javascript">
    $("#sub").click(function () {

        var e = 0;
        var logo = $("#logo").val();
        var title = $("#title").val();
        var bq = $("#banquan").val();
        var bq1 = $("#banquan1").val();
        var tcode = $("#tcode").val();
        var islogin = document.getElementById("islogin").value;
        var isvip = document.getElementById("isvip").value;
        var ucount = $("#usercount").val();
        var vcount = $("#vipcount").val();
        var url = $("#dspurl").val();
        if (e == 0) {
            $.post("{:U('system/webinfo')}", { logo: logo, title:title, bq:bq, bq1:bq1, login:islogin, vip:isvip, url:url,tcode:tcode,ucount:ucount,vcount:vcount}, function (data) {
                if (data.status == '1') {
                    layer.alert(data.info, { icon: 6 });//layer.msg('不开心。。', {icon: 5});
                    window.location.href = data.url;
                } else {
                    layer.alert(data.info, { icon: 5 });
                }
            })
        }

    })
</script>

</body>
</html>